package com.prs.crm.domain.ca.work;


import java.util.Date;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-3-28 14:28:16 采购入库
 */
@Entity
@Table(name = "ca_procureStore")
public class ProcureStore extends BaseEntity {
	private static final long serialVersionUID = 3443525029152632387L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 单号
	 */
	private String ps_billNumber;
	/**
	 * 入库人
	 */
	private String ps_storePerson;
	/**
	 * 入库日期
	 */
	private Date ps_storeDate;
	/**
	 * 数量
	 */
	private Integer ps_number;
	/**
	 * 物品总价
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private String ps_totalPrice;
	
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private String ps_money;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="sp_procureStoreId")
	private Set<Storeparticular> storeParticular;

	@ManyToOne
	private ArticleInfo articleInfo;
	
	public ArticleInfo getArticleInfo() {
		return articleInfo;
	}

	public String getPs_money() {
		return ps_money;
	}

	public void setPs_money(String psMoney) {
		ps_money = psMoney;
	}

	public Integer getPs_number() {
		return ps_number;
	}

	public void setPs_number(Integer psNumber) {
		ps_number = psNumber;
	}


	public void setArticleInfo(ArticleInfo articleInfo) {
		this.articleInfo = articleInfo;
	}

	public Set<Storeparticular> getStoreParticular() {
		return storeParticular;
	}

	public void setStoreParticular(Set<Storeparticular> storeParticular) {
		this.storeParticular = storeParticular;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPs_billNumber() {
		return ps_billNumber;
	}

	public void setPs_billNumber(String psBillNumber) {
		ps_billNumber = psBillNumber;
	}

	public String getPs_storePerson() {
		return ps_storePerson;
	}

	public void setPs_storePerson(String psStorePerson) {
		ps_storePerson = psStorePerson;
	}

	public Date getPs_storeDate() {
		return ps_storeDate;
	}

	public void setPs_storeDate(Date psStoreDate) {
		ps_storeDate = psStoreDate;
	}

	public String getPs_totalPrice() {
		return ps_totalPrice;
	}

	public void setPs_totalPrice(String psTotalPrice) {
		ps_totalPrice = psTotalPrice;
	}
}
